* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* .dictionary-entry {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
} */

.dictionary-entry {
    width: auto; /* 让宽度适应内容 */
    max-width: 400px; /* 可以设置一个最大宽度 */
    min-height: 50px; /* 避免初始过小 */
    padding: 10px;
    border: 1px solid #ccc;
    background-color: white;
    overflow: hidden; /* 防止内容溢出 */
    word-wrap: break-word; /* 让长单词换行 */
}

h1.word {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.pronunciation {
    font-size: 20px;
    color: #777;
    margin-bottom: 15px;
}

.part-of-speech {
    font-size: 18px;
    color: #555;
    margin-bottom: 10px;
}

.label {
    font-weight: bold;
}

.pos {
    color: #007BFF;
}

.definition {
    margin-left: 20px;
}

.definition ul {
    list-style-type: disc;
    margin-top: 5px;
    color: #444;
}

.definition li {
    margin-bottom: 5px;
}
